<%@page import="java.util.Map"%>
<%@page import="edu.yale.its.tp.cas.client.CASAttrPrincipal"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>

<%--jdk1.4 及其 以上版本 的用户获取方式--%>
<%
	String uid = request.getRemoteUser();

	CASAttrPrincipal principal = (CASAttrPrincipal)request.getUserPrincipal();
	Map<String, String> userMap = principal.getAttributes();
	String cn=userMap.get("cn");
	String cn=userMap.get("user_name");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title></title>
	</head>

	<body>
		Hello,<%=uid%>! Welcome <%=cn %> &nbsp;
		user_name is <%=user_name %>
		<a href="caslogout.jsp">登出</a>
	</body>
</html>